//
//  RegisterProtocolController.m
//  fastwatch
//
//  Created by lanou3g on 15/10/31.
//  Copyright © 2015年 songhaowen. All rights reserved.
//

#import "RegisterProtocolController.h"

@interface RegisterProtocolController ()

@end

@implementation RegisterProtocolController

- (void)viewDidLoad {
    [super viewDidLoad];
     self.navigationController.navigationBar.barTintColor = [UIColor orangeColor];    
    //设置title
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 40)];
    [titleLabel setText:@"注册协议"];
    [titleLabel setTextAlignment:NSTextAlignmentCenter];
    [titleLabel setTextColor:[UIColor blackColor]];
    [titleLabel setFont:[UIFont boldSystemFontOfSize:19]];
    [titleLabel setBackgroundColor:[UIColor clearColor]];
    self.navigationItem.titleView = titleLabel;
    
    UIBarButtonItem * backButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(backUserBtn)];
    self.navigationItem.leftBarButtonItem = backButtonItem;
    
    
    
}

- (void)backUserBtn {
     self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self dismissViewControllerAnimated:YES completion:nil];
    
}


@end
